package com.alpha.eceasy.mall.api.vo;

import com.alpha.eceasy.mall.api.entity.MallOrderDetail;
import com.alpha.eceasy.mall.api.entity.MallOrderDetailBid;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author huangpengfei
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MallOrderDetailVO extends MallOrderDetail {

    @Schema(description = "关联采购单唯一标识")
    private String unicode;

	@Schema(description =  "商品价格")
	private BigDecimal commodityPrice;

	@Schema(description =  "商品id")
	private String commodityGuid;

	@Schema(description =  "商品Icon")
	private String commodityIcon;
	@Schema(description =  "商品名称")
	private String commodityName;

	@Schema(description =  "规格名称")
	private String specificationName;

	@Schema(description =  "规格图片")
    private List<String> specificationCoverList;

	@Schema(description =  "规格价格")
	private BigDecimal specificationPrice;

	@Schema(description =  "客户名称")
	private String customerName;

	@Schema(description =  "sku")
	private String specificationSku;
	private List<MallOrderDetailBidVO> orderDetailBidList;

	public MallOrderDetailVO(MallOrderDetail entity) {
		BeanUtils.copyProperties(entity, this);
	}
}
